/* $Header: als_ui.h,v 2.8 05/03/02 11:35:10 przybyls Exp $ */

/***********************************************************************/
/* INCLUDE FILE NAME:  als_ui.h                                        */
/* ==================                                                  */
/*                                                                     */
/* Author:  Tom Przybylski                                             */
/*                                                                     */
/* COMMENT:                                                            */
/*                                                                     */
/*                                                                     */
/*                                                                     */
/*                                                                     */
/***********************************************************************/

#ifndef ALSUI_H
#define ALSUI_H

/*****************************/
/*   IFDEFS                  */
/*****************************/


/*****************************/
/*   SYMBOLIC CONSTANTS      */
/*****************************/


/*****************************/
/*   MACROS                  */
/*****************************/


/*****************************/
/*   TYPEDEFS                */
/*****************************/


/*****************************/
/*   EXTERNALS               */
/*****************************/


/*****************************/
/*   FUNCTION PROTOTYPES     */
/*****************************/

BIT8 HaveAlsPowerSupply(void);
BIT8 AlsHadPowerSupply(void);
BIT8 HaveFrAlsInjector(void);
BIT8 HaveBkAlsInjector(void);
BIT8 AnyFrAlsInjector(void);
BIT8 AnyBkAlsInjector(void);
BIT8 AnyAlsTray (void);
BIT8 HaveAlsTray(void);
BIT8 AnyAlsBCR (void);
BIT8 HaveAlsBCR(void);
BIT8 HaveFrMountedAls(void);
INT32 GetMaxBottle(POSITION posn);
BIT8 SamplesNotIndependent(void);
BIT8 IfAlsEnabled (POSITION p);
BIT8 TowersSwapped (void);
void SwapTowers (void);
BIT8 TurretSupportsExtendSolvent (POSITION p);
BIT8 TurretSupportsWasteMode (POSITION p);

BIT8  AlsIsBusy (void);

void  RewindSamplerFmt (U_INT16 chan);
INT16 ReadSamplerFmt (BIT8 *string, U_INT16 chan);

void CheckAlsConfig (void);

INT16 AddInjectorID (POSITION p, BIT8 *str);
INT32 GetAlsTimeSetting (void);
void  AbortInject (void);
void  StopInjector (void);

void   SetInjectorEnabled (POSITION p, BIT8 status);
void   SetTrayEnabled  (BIT8 status);
BIT8   GetTrayEnabled  (void);
void   SetBCREnabled   (BIT8 status);
BIT8   GetBCREnabled   (void);
void   SetSlowPlunger  (POSITION p, BIT8 status);
void   SetPlungerMode  (POSITION p, BIT8 status);
void   SetSkimEnabled  (POSITION p, BIT8 status);
BIT8   GetSlowPlunger  (POSITION p);
BIT8   GetSkimEnabled   (POSITION p);
INT32  GetAlsVolStop   (POSITION p);
INT32  GetAlsVolPercent (POSITION p);
INT32  GetAlsInjVol    (POSITION p);
INT32  GetAlsInjVolPercent (POSITION p);
UI_ERR SetAlsVolStop   (POSITION p, INT32 setpt);
UI_ERR SetAlsVolPercent (POSITION p, INT32 setpt);
INT32  GetBVolPercent  (POSITION p);
INT32  GetBInjVolPercent (POSITION p);
UI_ERR SetBVolPercent  (POSITION p, INT32 setpt);
INT32  GetCVolPercent  (POSITION p);
INT32  GetCInjVolPercent (POSITION p);
UI_ERR SetCVolPercent  (POSITION p, INT32 setpt);
INT32  GetAlsPumps     (POSITION p);
INT32  GetAlsMaxPumps  (POSITION p);
UI_ERR SetAlsPumps     (POSITION p, INT32 setpt);
INT32  GetAlsViscosity (POSITION p);
INT32  GetAlsMaxViscosity (POSITION p);
UI_ERR SetAlsViscosity (POSITION p, INT32 setpt);
INT32  GetAlsSampWash  (POSITION p);
INT32  GetAlsMaxWash   (POSITION p);
UI_ERR SetAlsSampWash  (POSITION p, INT32 setpt);
INT32  GetAlsPostWashA (POSITION p);
UI_ERR SetAlsPostWashA (POSITION p, INT32 setpt);
INT32  GetAlsPostWashB (POSITION p);
UI_ERR SetAlsPostWashB (POSITION p, INT32 setpt);
INT32  GetAlsPreWashA  (POSITION p);
UI_ERR SetAlsPreWashA  (POSITION p, INT32 setpt);
INT32  GetAlsPreWashB  (POSITION p);
UI_ERR SetAlsPreWashB  (POSITION p, INT32 setpt);
INT32  GetAlsInjDraw   (POSITION p);
INT32  GetAlsSolvDraw  (POSITION p);
INT32  GetAlsMaxDraw   (POSITION p);
INT32  GetAlsMinDraw   (POSITION p);
UI_ERR SetAlsInjDraw   (POSITION p, INT32 setpt);
UI_ERR SetAlsSolvDraw  (POSITION p, INT32 setpt);
INT32  GetAlsInjDisp   (POSITION p);
INT32  GetAlsSolvDisp  (POSITION p);
INT32  GetAlsMaxDisp   (POSITION p);
INT32  GetInjMinDisp   (POSITION p);
INT32  GetSolvMinDisp  (POSITION p);
UI_ERR SetAlsInjDisp   (POSITION p, INT32 setpt);
UI_ERR SetAlsSolvDisp  (POSITION p, INT32 setpt);
INT32  GetAlsPreDwell  (POSITION p);
INT32  GetAlsMaxDwell  (POSITION p);
UI_ERR SetAlsPreDwell  (POSITION p, INT32 setpt);
INT32  GetAlsPostDwell (POSITION p);
UI_ERR SetAlsPostDwell (POSITION p, INT32 setpt);
INT32  GetSkimDepth    (POSITION p);
INT32  GetMinSkimDepth (POSITION p);
INT32  GetMaxSkimDepth (POSITION p);
UI_ERR SetSkimDepth    (POSITION p, INT32 setpt);

INT32  GetAlsWasteMode (POSITION p);
UI_ERR SetAlsWasteMode (POSITION p, INT32 mode);
INT32  GetAlsFanOnOff  (POSITION p);
UI_ERR SetAlsFanOnOff  (POSITION p, INT32 onoff);
INT32  GetSyringeSize  (POSITION p);
UI_ERR SetSyringeSize  (POSITION p, INT32 size);
INT32  GetExtendSolv   (POSITION p);
INT32  G4513GetExtendSolv   (POSITION p);
UI_ERR SetExtendSolv   (POSITION p, INT32 onoff);
INT32  GetCsiDraw      (POSITION p);
UI_ERR SetCsiDraw      (POSITION p, INT32 draw);
INT32  GetCsiWashDisp  (POSITION p);
UI_ERR SetCsiWashDisp  (POSITION p, INT32 disp);
BIT8   SolventSaverEnabled (POSITION p);
BIT8   TowerSupportsSolvSave (POSITION p);
UI_ERR SolventSaverOnOff (POSITION p, ON_OFF onoff);
INT32  GetWashVolume   (POSITION p);
INT32  GetWashStop     (POSITION p);
UI_ERR SetWashStop     (POSITION p, INT32 vol);
INT32  GetCsiInjDisp   (POSITION p);
UI_ERR SetCsiInjDisp   (POSITION p, INT32 disp);
INT32  GetAlsTowerReps (POSITION p);
UI_ERR SetAlsTowerReps (POSITION p, INT32 reps);
INT32  GetAlsTowerDelay(POSITION p);
UI_ERR SetAlsTowerDelay(POSITION p, INT32 delay);
INT32  GetBCR3of9OnOff (void);
UI_ERR SetBCR3of9OnOff (INT32 onoff);
INT32  GetBCR2of5OnOff (void);
UI_ERR SetBCR2of5OnOff (INT32 onoff);
INT32  GetBCRUPCOnOff  (void);
UI_ERR SetBCRUPCOnOff  (INT32 onoff);
INT32  GetBCRChecksumOnOff (void);
UI_ERR SetBCRChecksumOnOff (INT32 onoff);
INT32  GetBCRPosition  (void);
UI_ERR SetBCRPosition  (INT32 posn);
INT32  GetGripOffset (void);
UI_ERR SetGripOffset (INT32 offset);
INT32  GetFrThetaOffset (void);
INT32  GetBkThetaOffset (void);
UI_ERR SetFrThetaOffset (INT32 offset);
UI_ERR SetBkThetaOffset (INT32 offset);
BIT8   NlAdaptorOff (POSITION p);
UI_ERR SetNlAdaptorOnOff (POSITION pos, INT32 onoff);
ON_OFF GetNlAdaptorOnOff (POSITION p);
UI_ERR SetAirGapOnOff    (POSITION pos, INT32 onoff);
ON_OFF GetAirGapOnOff    (POSITION p);
UI_ERR SetAlsOpMode (POSITION p, INT32 mode);
INT32  GetAlsOpMode (POSITION p);

BIT8   TowerSupportsRelay (POSITION p);
BIT8   TransferTurret     (POSITION p);     /* G4513 */

#endif
